Namespace - LJCNetCommon
Parameters
htmlAttribs - The attributes collection.
textState - The current text state values.
Returns
The attributes text.
Syntax
C# |
public String GetAttribs(Attributes htmlAttribs, TextState textState)
|
Gets the attributes text.
Remarks
The returned text does not end with a new line. This allows for additions
after the text.
Begin, Create and End text will start with a new line if the builder text
already has a value.
Example
C# |
var textState = new TextState();
var xb = new XMLBuilder(textState);
var attribs = new Attributes()
{
{ "name", "Someone" },
};
xb.Begin("Person", textState, attribs);
xb.End("Person", textState);
var result = xb.ToString();
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.